﻿using CID.Domain.Operations;
using CID.Tests.Support;
using NUnit.Framework;


namespace CID.Domain.Tests.Operations
{
    [TestFixture]
    class ServerAssignmentTests : BaseFunctionalTests
    {
        #region Constructor
        [Test]
        public void CreateServerAssignment_ShouldAssignProvidedArguments()
        { 
            var environment = StubsBuilder.BuildEnvironmentStub();
            var server = StubsBuilder.BuildServerStub();
            var serverRole = StubsBuilder.BuildServerRoleStub();

            var assignment = new ServerAssignment(server, serverRole, environment);

            Assert.AreEqual(environment, assignment.Environment);
            Assert.AreEqual(server, assignment.Server);
            Assert.AreEqual(serverRole, assignment.ServerRole);
        }
        #endregion
    }
}
